package com.earthchen.demo.domain;

import com.baomidou.mybatisplus.annotations.TableName;
import com.earthchen.core.domain.SuperEntity;


/**
 * 用户角色关系实体
 * @author earthchen
 */
@TableName("sys_user_role")
public class SysUserRole extends SuperEntity<SysUserRole> {

    private Long userId;

    private Long roleId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }


    public SysUserRole() {
    }

    public SysUserRole(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "AuthUserRole{" +
                "userId='" + userId + '\'' +
                ", roleId=" + roleId +
                '}';
    }
}